﻿@{
    Layout = null;
    var addData = new ViewDataDictionary();
    IEnumerable<dynamic> menuList = ViewBag.Menu;
    addData.Add("MenuList", menuList); //IEnumerable<dynimic>
    addData.Add("AdminPath", ViewBag.AdminPath);
    addData.Add("CanAdminTableList", ViewBag.CanAdminTableList); //Enumerable<dynimic>
    addData.Add("CurrentUser", ViewBag.CurrentUser);
    addData.Add("SiteId", ViewBag.CurrentSiteId);
    addData.Add("HomeLink", ViewBag.HomeLink);
}
<!DOCTYPE HTML>
<HTML>
<head>
    <title>会员中心</title>
    <meta name="Author" content="PageAdmin CMS" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="stylesheet" href="/Incs/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="~/Incs/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="~/Areas/Member/Css/Index.css" type="text/css">
    <script src="/Js/jquery.min.js" type="text/javascript"></script>
    <script src="/Js/basic.js" type="text/javascript"></script>
    <script src="/Js/UI/ui.js" type="text/javascript"></script>
    <!--[if lte IE 9]>
    <script src="/Incs/bootstrap/js/respond.min.js"></script>
    <script src="/Incs/bootstrap/js/html5.js"></script>
    <![endif]-->
    <script src="/Incs/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
</head>
<body style="overflow:hidden">
    <div class="header" id="header">
        <a href="@ViewBag.HomeLink" target="_blank" class="logo"></a>
        @*<div class="left">
                <a href="javascript:void(0)" class="currentsite" id="currentsite" title="点击却换站点">华拓网络主站</a>
            </div>
            <div class="right">
                <a class="home_icon">管理首页</a>

            </div>*@
        @{
            Html.RenderPartial("TopMenu", addData);
        }
    </div>
    <div class="main" id="main">
        <div class="leftarea" id="leftarea">
            @{
                Html.RenderPartial("LeftMenu", addData);
            }
        </div>
        <div class="rightarea" id="rightarea">
            @*<div class="historytab" id="historytab"><ul></ul></div>*@
            <iframe name="mainContainer" id="mainContainer" src="" frameborder="0" scrolling="auto" style="border:none;" width="100%" height="100%" allowtransparency="true"></iframe>
        </div>
    </div>
    <script src="/Areas/Admin/Js/Index.js" type="text/javascript"></script>
    <script type="text/javascript">
        var $mainContainer = $("#mainContainer");
        var url = decodeURIComponent(Request("url"));
        if (url=="") {
            url="@Url.ActionUrl("Home", "Default")";
        }
        $mainContainer.attr("src", url);
        //1、检测资料完善
        var loginedMustFillInformation = @ViewBag.LoginedMustFillInformation;
        if (loginedMustFillInformation == 1)
        {
            Ajax({ url: '@Url.ActionUrl("CheckMustFillInformation")' },
                function (result) {
                    var result = JsonParse(result);
                    if (result.State== 0) {
                        //弹出完善资料页面
                        var defaultoption = {
                            url: "@Url.ActionUrl("UserInfo", "MyLogin")?MustFillInformation=1",
                            title: "请完善您的资料信息",
                            shadeClose:false,
                            shade: 0.2,
                            target: "top",
                            width: "80%",
                            height: "80%",
                            closeBtn:false
                        };
                        IDialog(defaultoption);
                    }
                            });
        }

    </script>
</body>
</HTML>